package cn.basic.batch.controller;

import cn.basic.batch.service.BatchPsbUserAddressComponent;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * @description:
 * @author: ZZZ
 * @time: 2021/3/29 19:39
 */
@RestController
@RequestMapping("/batch")
public class BatchController {
    public static void main(String[] args) {
        Integer n=0;
        tt(n);
        System.out.println(n);
    }
    private  static void  tt(Integer n){
      n=n+1;
    }
    @Autowired
    private BatchPsbUserAddressComponent batchPsbUserAddressComponent;
    @RequestMapping("/addr")
    public Long insertPsbUserAddress(int partid){
        Long result = batchPsbUserAddressComponent.batchPsbUserAddress(partid);
        return result;
    }


}
